import request from '@/utils/request'
// 1. 注册用户
export const register = (data) => {
  return request.post('/user/register', data)
}
// 2. 账户登录
export const login = (data) => {
  return request.post('/user/login', data)
}
// 3. 获取用户信息
export const getUserInfo = () => {
  return request('/user/currentUser')
}
